﻿using Microsoft.EntityFrameworkCore;

namespace myDemo
{
    public class MyContext : DbContext
    {
        public MyContext(DbContextOptions<MyContext> options) : base(options)
        {


        }
        public DbSet<Student> students { get; set; }
    }
    public class Student
    {
        public int Id { set; get; }
        public string FirstName { set; get; }
        public string LastName { set; get; }
        public Gender Gender { set; get; }
        public int Grade { set; get; }

    }
    public enum Gender
    {
        女,
        男
    }

}
